package com.itheima.service;

import com.github.pagehelper.PageInfo;
import com.itheima.domain.User;

import java.util.List;

public interface UserService {

    PageInfo<User> findAll(int currentPage, int pageSize);

    void save(User user);

    void deleteById(String id);

    User findById(String id);

    void update(User user);

    User login(User user);

    void deleteAll(String[] ids);

    int findByName(String name);
}

